<script setup>
const props = defineProps({
  message: String,
  count: Number,
})
console.log(props)
</script>

<template>
<div class="container1" >
 来自demo2父组件 {{message}}
  <p>
    -变量 {{count}}
  </p>
</div>
</template>

<style scoped>
.container1{
  width: 200px;
  height: 200px;
  background: #ff11ff;
}
</style>